<?php
namespace app\admin\controller;

use think\Controller;

class Login extends Controller
{
    public function index()
    {
        if(request()->isPost()){
            $data=input('post.');
            $loginStatus=model('admin')->login($data);


//            dump($loginStatus);
//            die();
            return json($loginStatus);
        }
      return view('login');
    }
    public function test(){
        $ts=time();
        dump($ts);
        $tss=$this->standTime($ts);
        dump($tss);
        die();
    }
}
